﻿using M.AuditField;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace M_Manufacture.Domain
{
    /// <summary>
    /// 工单-信息
    /// </summary>
    [Table("WorkOrder")]
    public class WorkOrder: AuditFields
    {
        /// <summary>
        /// 工单ID
        /// </summary>
        [Key]
        public int WorkOrderId {  get; set; }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string? WorkOrderCode { get; set; }
        /// <summary>
        /// 客户
        /// </summary>
        public string? Customer { get; set; }
        /// <summary>
        /// 生产编号
        /// </summary>
        public string? ProductionNumber { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string? OrderCode { get; set; }
        /// <summary>
        /// 优先级
        /// </summary>
        public string? Priority { get; set; }
        /// <summary>
        /// 工单状态
        /// </summary>
        public string? WorkOrderSart { get; set; }
        /// <summary>
        /// 当前工序
        /// </summary>
        public string? CurrenProcess { get; set; }
        /// <summary>
        /// 备注   
        /// </summary>
        public string? Notes { get; set; }
        /// <summary>
        /// 选择成品
        /// </summary>
        public string? FinishedProduct { get; set; }
        /// <summary>
        /// 成品编号
        /// </summary>
        public string? FinishedProductCode { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string? Specification { get; set; }
        /// <summary>
        /// 尺寸
        /// </summary>
        public string? Size { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string? Unit { get; set; }
        /// <summary>
        /// 车间
        /// </summary>
        public string? WorkShop { get; set; }
        /// <summary>
        /// 计划产量
        /// </summary>
        public int? Production { get; set; }
        /// <summary>
        /// 单次产量
        /// </summary>
        public int? SingleNumber {  get; set; }
        /// <summary>
        /// 计划开始日期
        /// </summary>
        public DateTime? StartDate { get; set; } 
        /// <summary>
        /// 计划结束日期
        /// </summary>
        public DateTime? EndDate { get; set; } 
        /// <summary>
        /// 工艺路线
        /// </summary>
        public string? ProcessRoute { get; set; }
    }
}
